/*
 * ModelCC, distributed under ModelCC Shared Software License, www.modelcc.org
 */


package test.modelcc.language.imperative.model.expression;

import org.modelcc.IModel;
import org.modelcc.Priority;

import test.modelcc.language.imperative.model.Expression;

@Priority(precedes=BinaryExpression.class)
public class UnaryExpression extends Expression implements IModel {
    public UnaryOperator op;
    public Expression e;

    @Override
    public double eval() {
        return op.eval(e);
    }
}
